my updatevalue function is not working when I click on remove butt